package com.luckberry.murder.service.impl;

import com.luckberry.murder.entity.VIP;
import com.luckberry.murder.mapper.VIPMapper;
import com.luckberry.murder.service.VIPService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class VIPServiceImpl implements VIPService {

    @Resource
    private VIPMapper mapper;

    @Override
    public List<VIP> getVIPs() {
        return mapper.getVIPs();
    }

    @Override
    public VIP getVIP(int uid) {
        return mapper.getVIP(uid);
    }

    @Override
    public boolean addVIP(VIP vip) {
        return mapper.addVIP(vip) == 1;
    }

    @Override
    public boolean deleteVIP(int uid) {
        return mapper.deleteVIP(uid) == 1;
    }

    @Override
    public boolean editVIP(VIP vip) {
        return mapper.editVIP(vip) == 1;
    }
}
